
             //为什么不在接口拼接 不合适 有限制 最规范在请求头设置
axios.get('/student/list',{
    // headers:{
    //     // Authorization:localStorage.getItem('token82')
    // }
})
.then(result=>{
    console.log(result)
})

const logout = document.querySelector('.logout a');

const navAlist = document.querySelectorAll('.nav>li>a');

const navUllist = document.querySelectorAll('.nav ul li');



logout.addEventListener('click',function(e){
    localStorage.removeItem('token82')
    location.href = './login.html'
})

navAlist.forEach(v => {
    v.addEventListener('click',function(e){
        this.querySelector('.toggle').classList.toggle('toggleZore')
        console.log(this.querySelector('.toggle'));

        this.nextElementSibling.classList.toggle('show')

    })
});

navUllist.forEach(v=>{
    v.addEventListener('click',function (e) {
        document.querySelector('.nav ul a.active').classList.remove('active')

        this.querySelector('a').classList.add('active')
        
    })
})
